using System.Linq;
using Domain.Model.Banks;

namespace Infrastructure.TestsCore.Fakes
{
    public class FakeBanksDbSet : FakeDbSet<Bank>
    {
        public override Bank Find(params object[] keyValues)
        {
            return this.SingleOrDefault(b => b.BIC == (string)keyValues.Single());
        }
    }
}